<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/jquery-2.1.4.min.js"></script>
	<script src="js/common.js"></script>
	<script src="js/mui.min.js"></script>
    <script src="js/http.js"></script>
	<link href="css/mui.min.css" rel="stylesheet"/>
	<link href="css/style.css" rel="stylesheet"/>
</head>
<body>
	
<script>
    mui.ajax(dev_url + '/auth/is_login' ,{
        timeout:10000,//超时时间设置为10秒；      
        success:function(data){
            //服务器返回响应，根据响应结果，分析是否登录成功；
            if (data.errorCode == 0) {
                mui.init({
                    subpages:[{
                        url: 'mission-hall.html',
                        id: 'mission_hall'
                    }],
                    preloadPages:[ 
                        {  
                          url:'personal.html',  
                          id:'personal'
                        }
                    ]
                });
            } else if (data.errorCode == 5) {
               mui.init({
					subpages:[{
                        url: 'login.html',
                        id: 'login'
                    }],
				});
            }
        },
        error:function(xhr,type,errorThrown) {
            console.log(type);
        }
    });
</script>
</body>
</html>